
//
//  CommonViewController.m
//  界面动画集
//
//  Created by YYY on 2017/7/5.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

#import "CommonViewController.h"

@interface CommonViewController ()

@end

@implementation CommonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //添加加载动画
    [self addLoadingAnimation];
    // Do any additional setup after loading the view.
}
//添加加载动画
-(void)addLoadingAnimation
{
    [[LoadingAnimation sharedInstance] showLoadingAnimation:self];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [[LoadingAnimation sharedInstance] hiddenLoadingAnimation];
    });
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
